xen.git
19 years agoMerge
Tim Deegan [Mon, 26 Feb 2007 14:48:46 +0000 (14:48 +0000)]
Merge

19 years ago[TOOLS] fix sizeof() usage in xc_core
Tim Deegan [Mon, 26 Feb 2007 14:47:54 +0000 (14:47 +0000)]
[TOOLS] fix sizeof() usage in xc_core
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Fix backward compatibility in page table handling
kfraser@localhost.localdomain [Mon, 26 Feb 2007 14:09:08 +0000 (14:09 +0000)]
linux: Fix backward compatibility in page table handling

A 3.0.2 compatibility requirement slipped my attention before
submitting the original page table handling changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] Allow log-dirty mode to be enabled on already-shadowed domains.
Tim Deegan [Mon, 26 Feb 2007 13:56:01 +0000 (13:56 +0000)]
[XEN] Allow log-dirty mode to be enabled on already-shadowed domains.
and catch a few missing mark_dirty() calls
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoRemap PCI-ISA IRQ 6 to IRQ 7. Disable LPT1 by default and remove its
kfraser@localhost.localdomain [Mon, 26 Feb 2007 11:53:35 +0000 (11:53 +0000)]
Remap PCI-ISA IRQ 6 to IRQ 7. Disable LPT1 by default and remove its
definition from the ACPI DSDT. This avoids conflict with FDC on IRQ6
(it is a bit more likely that someone will want to connect a floppy
image to a guest than it is that anyone will ever care about
parallel-port functionality).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoResolve conflict over use of name xen_elfnote.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 11:21:03 +0000 (11:21 +0000)]
Resolve conflict over use of name xen_elfnote.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Mon, 26 Feb 2007 10:23:03 +0000 (10:23 +0000)]
Merge

19 years ago[HVM] Shadow: always use mmio_space() to detect MMIO addresses
Tim Deegan [Mon, 26 Feb 2007 10:22:38 +0000 (10:22 +0000)]
[HVM] Shadow: always use mmio_space() to detect MMIO addresses
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolibxc, ia64: Added new arch_hook for registering ia64 big endian images.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 10:18:52 +0000 (10:18 +0000)]
libxc, ia64: Added new arch_hook for registering ia64 big endian images.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years agoSave elfnotes in VM sxpr under image/notes, and load them on restore.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 09:59:56 +0000 (09:59 +0000)]
Save elfnotes in VM sxpr under image/notes, and load them on restore.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoWrite Xen ELF notes into xenstore on domain build.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 09:59:33 +0000 (09:59 +0000)]
Write Xen ELF notes into xenstore on domain build.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years ago[HVM] Revert cset 14083
Tim Deegan [Mon, 26 Feb 2007 09:28:30 +0000 (09:28 +0000)]
[HVM] Revert cset 14083
which was wrong, and not very useful.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxm-test, acm: Use xvda* device name instead of sdb* device inside guest domain.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 09:13:50 +0000 (09:13 +0000)]
xm-test, acm: Use xvda* device name instead of sdb* device inside guest domain.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoRemove duplicate #includes from Linux sparese-tree file.
kfraser@localhost.localdomain [Mon, 26 Feb 2007 09:12:55 +0000 (09:12 +0000)]
Remove duplicate #includes from Linux sparese-tree file.
From: Chuck Short <zulcss@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove unused network.default_{gateway,netmask}.
Ewan Mellor [Mon, 26 Feb 2007 00:07:14 +0000 (00:07 +0000)]
Remove unused network.default_{gateway,netmask}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRedefine units of VDI.virtual_size to be bytes, not sectors.
Ewan Mellor [Sun, 25 Feb 2007 23:45:39 +0000 (23:45 +0000)]
Redefine units of VDI.virtual_size to be bytes, not sectors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host.capabilities field.
Ewan Mellor [Sun, 25 Feb 2007 23:37:05 +0000 (23:37 +0000)]
Added host.capabilities field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace VM.tools_version with a richer VM_guest_metrics class.
Ewan Mellor [Sun, 25 Feb 2007 23:17:14 +0000 (23:17 +0000)]
Replace VM.tools_version with a richer VM_guest_metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded documentation and C bindings for VBD/VIF.status_detail, status_code, and
Ewan Mellor [Sun, 25 Feb 2007 22:47:29 +0000 (22:47 +0000)]
Added documentation and C bindings for VBD/VIF.status_detail, status_code, and
currently_attached fields.  Not yet implemented.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded a VM.domid field.
Ewan Mellor [Sun, 25 Feb 2007 22:31:43 +0000 (22:31 +0000)]
Added a VM.domid field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove the bindings for VM.get_VCPUs_{number,utilisation} -- these have moved
Ewan Mellor [Sun, 25 Feb 2007 22:02:12 +0000 (22:02 +0000)]
Remove the bindings for VM.get_VCPUs_{number,utilisation} -- these have moved
onto the metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix typo in host record.
Ewan Mellor [Sun, 25 Feb 2007 21:53:39 +0000 (21:53 +0000)]
Fix typo in host record.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded tab completion for methods and object references to xm shell.
Ewan Mellor [Sun, 25 Feb 2007 21:52:54 +0000 (21:52 +0000)]
Added tab completion for methods and object references to xm shell.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host.API_version_{major,minor,vendor,vendor_implementation} fields.
Ewan Mellor [Sun, 25 Feb 2007 17:20:51 +0000 (17:20 +0000)]
Added host.API_version_{major,minor,vendor,vendor_implementation} fields.

Fix missing host.other_config from the record returned by Xend.

Improve the error diagnosis when we catch TypeError.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded VBD. and VIF.qos_supported_algorithms fields, with C bindings, Xend
Ewan Mellor [Wed, 21 Feb 2007 23:03:00 +0000 (23:03 +0000)]
Added VBD. and VIF.qos_supported_algorithms fields, with C bindings, Xend
implementation to follow.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agolibxc: Code format cleanups.
Keir Fraser [Sat, 24 Feb 2007 15:30:19 +0000 (15:30 +0000)]
libxc: Code format cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoReduce impact of saving/restoring/dumping large domains on Dom0 memory
Keir Fraser [Sat, 24 Feb 2007 14:48:17 +0000 (14:48 +0000)]
Reduce impact of saving/restoring/dumping large domains on Dom0 memory
usage by means of fadvise64() to tell the OS to discard the cache
pages used for the save/dump file.

Signed-off-by: Simon Graham <Simon.Graham@stratus.com>
19 years agodump-core: documentation on its format.
Keir Fraser [Sat, 24 Feb 2007 14:33:34 +0000 (14:33 +0000)]
dump-core: documentation on its format.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoxc_ptrace_core.c new elf format support
Keir Fraser [Sat, 24 Feb 2007 14:32:43 +0000 (14:32 +0000)]
xc_ptrace_core.c new elf format support
The old format is still supported and the old implementation is left
as is with the slight adjustment to coexist with new implementation.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoXen coredump format: ELF formatified with note section.
Keir Fraser [Sat, 24 Feb 2007 14:31:42 +0000 (14:31 +0000)]
Xen coredump format: ELF formatified with note section.
added PFN-GMFN table for non-auto translated physmap
added PFN table for auto translated physmap.
HVM domain support.
IA64 support

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Use the guest's own p2m table instead of xc_get_pfn_list(), which
cannot handle PFNs with no MFN.
Dump a zeroed page for PFNs with no MFN.
Clearly deprecate xc_get_pfn_list().
Do not include a P2M table with HVM domains.
Refuse to dump HVM until we can map its pages with PFNs.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoMove some definitions from xg_save_resotre.h to xg_private.h
Keir Fraser [Sat, 24 Feb 2007 14:19:42 +0000 (14:19 +0000)]
Move some definitions from xg_save_resotre.h to xg_private.h
which are necessary for the new dump core implementation.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agox86 hvm domain builder, restore: set shared_info.arch.max_pfn for
Keir Fraser [Sat, 24 Feb 2007 14:19:05 +0000 (14:19 +0000)]
x86 hvm domain builder, restore: set shared_info.arch.max_pfn for
dump-core to know the area to dump

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoSupport new xm command: xm trigger <Domain> <nmi|reset|init> [<VCPU>]
Keir Fraser [Sat, 24 Feb 2007 14:10:27 +0000 (14:10 +0000)]
Support new xm command: xm trigger <Domain> <nmi|reset|init> [<VCPU>]
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
19 years agoxen memory allocator: Allow per-domain bitwidth restrictions.
Keir Fraser [Sat, 24 Feb 2007 13:57:34 +0000 (13:57 +0000)]
xen memory allocator: Allow per-domain bitwidth restrictions.
Original patch by Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen memory allocator: Dynamically allocate per-numa-node metadata.
Keir Fraser [Sat, 24 Feb 2007 12:19:22 +0000 (12:19 +0000)]
xen memory allocator: Dynamically allocate per-numa-node metadata.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TAPDISK] honor read-only attributes when creating tap-based VBDs
Jake Wires [Sat, 24 Feb 2007 01:26:07 +0000 (17:26 -0800)]
[TAPDISK] honor read-only attributes when creating tap-based VBDs
Signed-off-by: Jake Wires <jwires@xensource.com>
19 years ago[TAPDISK] handle error case when opening VDIs
Jake Wires [Fri, 23 Feb 2007 17:40:32 +0000 (09:40 -0800)]
[TAPDISK] handle error case when opening VDIs

19 years agoxen memory alloctor: remove bit width restrictions
kfraser@localhost.localdomain [Fri, 23 Feb 2007 17:02:58 +0000 (17:02 +0000)]
xen memory alloctor: remove bit width restrictions

Hide the (default or user specified) DMA width from anything outside
the heap allocator. I/O-capable guests can now request any width for
the memory they want exchanged/added.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxen memory allocator: per-bit-width heap zones
kfraser@localhost.localdomain [Fri, 23 Feb 2007 17:01:38 +0000 (17:01 +0000)]
xen memory allocator: per-bit-width heap zones

Replace the 3-zone scheme of the heap allocator with one with one
where zones are distinguished by their bit widths.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agomerge
Ian Campbell [Fri, 23 Feb 2007 16:57:34 +0000 (16:57 +0000)]
merge

19 years ago[LINUX] Purge include <linux/config.h>. It has been obsolete for some time now.
Ian Campbell [Fri, 23 Feb 2007 16:56:45 +0000 (16:56 +0000)]
[LINUX] Purge include <linux/config.h>. It has been obsolete for some time now.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[PV-on-HVM] Fix gnttab_map to not run off the bottom of the gnttab space.
Ian Campbell [Fri, 23 Feb 2007 16:56:42 +0000 (16:56 +0000)]
[PV-on-HVM] Fix gnttab_map to not run off the bottom of the gnttab space.

Cleanup a few warnings: reached end of void function and unused variables.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoxen memory allocator: hide generic allocator routines
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:55:56 +0000 (16:55 +0000)]
xen memory allocator: hide generic allocator routines

This patch doesn't introduce functional changes, but simply moves code
around to make the unused (outside of the page allocator) heap alloc
functions taking an explicit zone parameter static without having to
forward-prototype them in their source file.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxentrace: Add a relative TSC field (kept track per CPU) to xentrace_format.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:36:55 +0000 (16:36 +0000)]
xentrace: Add a relative TSC field (kept track per CPU) to xentrace_format.

Additionally a default line is added (key 0x00000000) which is used
when no specific entry in the format file is found.

Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
19 years agolinux, tpm: Fix argument to grant table operation
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:24:07 +0000 (16:24 +0000)]
linux, tpm: Fix argument to grant table operation
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agohvm: Fix save/restore to handle missing pages.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:17:00 +0000 (16:17 +0000)]
hvm: Fix save/restore to handle missing pages.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm: unset_mm_mapping() for vga acceleration region should recalculate
kfraser@localhost.localdomain [Fri, 23 Feb 2007 16:16:36 +0000 (16:16 +0000)]
hvm: unset_mm_mapping() for vga acceleration region should recalculate
maxmem setting before freeing memory!
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Only treat gfns in known MMIO regions as MMIO
Tim Deegan [Fri, 23 Feb 2007 14:44:07 +0000 (14:44 +0000)]
[HVM] Only treat gfns in known MMIO regions as MMIO
instead of assuming that all non-RAM addresses are MMIO
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Fix dumb boot allocator breakage that prevents loop termination
kfraser@localhost.localdomain [Fri, 23 Feb 2007 14:36:33 +0000 (14:36 +0000)]
xen: Fix dumb boot allocator breakage that prevents loop termination
in some cases. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] [TOOLS] 32on64 compat save/restore: unadjust L3E flags at save time
Emmanuel Ackaouy [Fri, 23 Feb 2007 12:58:20 +0000 (12:58 +0000)]
[XEN] [TOOLS] 32on64 compat save/restore: unadjust L3E flags at save time
Get rid of USER|RW|ACCESSED L3 PTE flags which may be present
in a PAE guest when running on a 64bit hypervisor at save time.
This prevents the restore operation from getting confused by
these flags.
Reset disallowed L3E flags to match PAE case.

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years agohvm: Clean up initialisation of hvm_funcs.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 11:32:25 +0000 (11:32 +0000)]
hvm: Clean up initialisation of hvm_funcs.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoImplement VBD and VIF handling on Solaris for libxenstat.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 10:47:55 +0000 (10:47 +0000)]
Implement VBD and VIF handling on Solaris for libxenstat.

Also, fix up a confusion with ERR that was breaking xentop.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agolinux: Fix current_vcpu_info for UP case
kfraser@localhost.localdomain [Fri, 23 Feb 2007 10:43:00 +0000 (10:43 +0000)]
linux: Fix current_vcpu_info for UP case

Under !CONFIG_SMP, smp.h is not always included and hence
smp_processor_id() not always visible.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoMerge with xen-ia64-unstable.hg.
kfraser@localhost.localdomain [Fri, 23 Feb 2007 10:38:33 +0000 (10:38 +0000)]
Merge with xen-ia64-unstable.hg.

19 years agohvm: Rename injection_pending() to event_injection_faulted().
kfraser@localhost.localdomain [Fri, 23 Feb 2007 10:35:16 +0000 (10:35 +0000)]
hvm: Rename injection_pending() to event_injection_faulted().
Fix the VMX and SVM handlers to reflect the new semantics (which is
what is actually required by the one caller, in shadow fault path).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TAPDISK] minor changes to tapdisk and plugins
Jake Wires [Fri, 23 Feb 2007 05:32:17 +0000 (21:32 -0800)]
[TAPDISK] minor changes to tapdisk and plugins
* open all parent images read-only
* expose parent image names to tapdisk (needed for locking api)
Signed-off-by: Jake Wires <jwires@xensource.com>
19 years agox86/64: Fix a user of alloc_boot_pages() who should use
kfraser@localhost.localdomain [Thu, 22 Feb 2007 22:27:40 +0000 (22:27 +0000)]
x86/64: Fix a user of alloc_boot_pages() who should use
alloc_boot_low_pages() instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Thu, 22 Feb 2007 17:15:29 +0000 (10:15 -0700)]
merge with xen-unstable.hg

19 years ago[IA64] First step to support big-endian PV domUs
awilliam@xenbuild2.aw [Thu, 22 Feb 2007 16:42:13 +0000 (09:42 -0700)]
[IA64] First step to support big-endian PV domUs

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years agoalloc_boot_pages() allocates downwards from high memory.
kfraser@localhost.localdomain [Thu, 22 Feb 2007 15:26:21 +0000 (15:26 +0000)]
alloc_boot_pages() allocates downwards from high memory.
This conserves low memory.

Provide new function alloc_boot_low_pages() for those callers who
actually require lowmem pages (e.g., below 4GB).

Based on a patch by Chris Lalancette <clalance@redhat.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Detect shadow-emulate write to stack from inside the write
kfraser@localhost.localdomain [Thu, 22 Feb 2007 15:22:16 +0000 (15:22 +0000)]
x86: Detect shadow-emulate write to stack from inside the write
handler, where we can quite conveniently check whether the access
segment is SS. This will only give a false positive for non-stack
writes that override the destination segment to SS, which it is
probably safe to assume will never happen when the destination is a
legitimate page table!

For now, instead of bailing and unshadowing just increment a perfctr
and we'll see if that increases fast under any reasonable workload.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix perfc=y build
Tim Deegan [Thu, 22 Feb 2007 14:58:26 +0000 (14:58 +0000)]
Fix perfc=y build
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agohvm: Turn stack-pointer comparison on shadow-emulate path into a
kfraser@localhost.localdomain [Thu, 22 Feb 2007 13:03:49 +0000 (13:03 +0000)]
hvm: Turn stack-pointer comparison on shadow-emulate path into a
heuristic which we can allow to fail.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm: Do not take shadow-emulation path if we are trying to inject an
kfraser@localhost.localdomain [Thu, 22 Feb 2007 12:49:44 +0000 (12:49 +0000)]
hvm: Do not take shadow-emulation path if we are trying to inject an
event into the HVM guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] don't emulate stack operations on shadowed pages
Tim Deegan [Thu, 22 Feb 2007 12:21:29 +0000 (12:21 +0000)]
[XEN] don't emulate stack operations on shadowed pages
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[BLKTAP] fix sysfs cleanup on error case
Jake Wires [Thu, 22 Feb 2007 02:38:11 +0000 (18:38 -0800)]
[BLKTAP] fix sysfs cleanup on error case
Signed-off-by: Jake Wires <jwires@xensource.com>
19 years agox86: Only unshadow on failed emulation, not when an exception is raised.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 20:30:37 +0000 (20:30 +0000)]
x86: Only unshadow on failed emulation, not when an exception is raised.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Use hard tabs and Linux coding style.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 20:03:56 +0000 (20:03 +0000)]
linux: Use hard tabs and Linux coding style.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Extend emulator return codes.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 19:58:58 +0000 (19:58 +0000)]
x86: Extend emulator return codes.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BLKBACK/BLKTAP] add sysfs throughput profiling to blk{back/tap}
Jake Wires [Wed, 21 Feb 2007 19:42:04 +0000 (11:42 -0800)]
[BLKBACK/BLKTAP] add sysfs throughput profiling to blk{back/tap}

19 years agohvm: local_events_need_delivery() must take into account VLAPIC/PIC status.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 19:12:16 +0000 (19:12 +0000)]
hvm: local_events_need_delivery() must take into account VLAPIC/PIC status.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolibfs: Fix build with gcc4.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 18:54:48 +0000 (18:54 +0000)]
libfs: Fix build with gcc4.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd find_domain_rcu_lock() and domain_rcu_unlock().
kfraser@localhost.localdomain [Wed, 21 Feb 2007 16:33:34 +0000 (16:33 +0000)]
Add find_domain_rcu_lock() and domain_rcu_unlock().

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUse RCU for domain_list and domain_hash.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 16:13:49 +0000 (16:13 +0000)]
Use RCU for domain_list and domain_hash.

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Wed, 21 Feb 2007 14:44:09 +0000 (14:44 +0000)]
Merge

19 years agox86: Better BUG() and ASSERT() logging.
kfraser@localhost.localdomain [Wed, 21 Feb 2007 14:40:37 +0000 (14:40 +0000)]
x86: Better BUG() and ASSERT() logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Allow exceptions to be handled while interrupts are
kfraser@localhost.localdomain [Wed, 21 Feb 2007 10:13:40 +0000 (10:13 +0000)]
x86: Allow exceptions to be handled while interrupts are
disabled. Handlers must take special care if necessary.
Fixes the debug 'd' key.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded C bindings for host.supported_bootloaders.
Ewan Mellor [Wed, 21 Feb 2007 00:04:59 +0000 (00:04 +0000)]
Added C bindings for host.supported_bootloaders.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix allocation of the error_description fields.
Ewan Mellor [Wed, 21 Feb 2007 00:04:06 +0000 (00:04 +0000)]
Fix allocation of the error_description fields.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoPut the set size in the structure on set-allocation.
Ewan Mellor [Tue, 20 Feb 2007 23:59:13 +0000 (23:59 +0000)]
Put the set size in the structure on set-allocation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host.supported_bootloaders field.
Ewan Mellor [Tue, 20 Feb 2007 22:54:30 +0000 (22:54 +0000)]
Added host.supported_bootloaders field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove host.create and host.destroy -- these never made any sense.
Ewan Mellor [Tue, 20 Feb 2007 22:46:21 +0000 (22:46 +0000)]
Remove host.create and host.destroy -- these never made any sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Tue, 20 Feb 2007 22:43:57 +0000 (15:43 -0700)]
merge with xen-unstable.hg

19 years agoAdded modelling and C bindings for VIF/VBD QoS parameter setting. No Xend
Ewan Mellor [Tue, 20 Feb 2007 22:40:55 +0000 (22:40 +0000)]
Added modelling and C bindings for VIF/VBD QoS parameter setting.  No Xend
implementation yet.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[IA64] Update xencommize_mini_grant_table_op for GNTTABOP_query_size
awilliam@xenbuild2.aw [Tue, 20 Feb 2007 22:12:11 +0000 (15:12 -0700)]
[IA64] Update xencommize_mini_grant_table_op for GNTTABOP_query_size

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agoSplit the VIF I/O statistics fields out into a VIF_metrics class. Implement
Ewan Mellor [Tue, 20 Feb 2007 21:55:11 +0000 (21:55 +0000)]
Split the VIF I/O statistics fields out into a VIF_metrics class.  Implement
this in Xend, and fix the VBD_metrics implementation.  Implement C bindings
also.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoSplit the VBD I/O statistics out into a VBD_metrics class. Document the
Ewan Mellor [Tue, 20 Feb 2007 21:28:19 +0000 (21:28 +0000)]
Split the VBD I/O statistics out into a VBD_metrics class.  Document the
VBD.type field, and add it to the C bindings (this was already in Xend).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Tue, 20 Feb 2007 19:58:22 +0000 (12:58 -0700)]
merge with xen-unstable.hg

19 years agoAdded Console.other_config to the docs (Xend already has this).
Ewan Mellor [Tue, 20 Feb 2007 19:38:24 +0000 (19:38 +0000)]
Added Console.other_config to the docs (Xend already has this).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRename Console.uri to location. Xend already uses the latter.
Ewan Mellor [Tue, 20 Feb 2007 19:23:28 +0000 (19:23 +0000)]
Rename Console.uri to location.  Xend already uses the latter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agox86 emulation: fix bswap
kfraser@localhost.localdomain [Tue, 20 Feb 2007 17:05:50 +0000 (17:05 +0000)]
x86 emulation: fix bswap

REX.R needs to be decoded. Since it is simple to do, faster, and
smaller, let hardware do 32- and 64-bit BSWAP. 16-bite BSWAP is
undefined: emulate with observed behaviour (write zero).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86: Fix emulation of REP prefix.
kfraser@localhost.localdomain [Tue, 20 Feb 2007 16:57:50 +0000 (16:57 +0000)]
x86: Fix emulation of REP prefix.
Firstly, it should be ignored when used with any opcode for which it
is undefined. Secondly, the count register (rCX) width depends on
address size.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove VM.VCPUs_number and VM.VCPUs_utilisation as these have moved onto the
Ewan Mellor [Tue, 20 Feb 2007 16:30:24 +0000 (16:30 +0000)]
Remove VM.VCPUs_number and VM.VCPUs_utilisation as these have moved onto the
VM_metrics class.  Remove VM_metrics.VM -- the backreference is unnecessary
and awkward to deal with.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Tim Deegan [Tue, 20 Feb 2007 16:19:40 +0000 (16:19 +0000)]
Merge

19 years ago[HVM] Another unchecked caller of hvm_copy_to_guest_virt()
Tim Deegan [Tue, 20 Feb 2007 16:18:56 +0000 (16:18 +0000)]
[HVM] Another unchecked caller of hvm_copy_to_guest_virt()
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoacm: More fixes after grant-table changes. These are all bugs
kfraser@localhost.localdomain [Tue, 20 Feb 2007 16:12:02 +0000 (16:12 +0000)]
acm: More fixes after grant-table changes. These are all bugs
introduced during merge of Isaku's previous patch. :-)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoMerge
Tim Deegan [Tue, 20 Feb 2007 15:37:28 +0000 (15:37 +0000)]
Merge

19 years ago[XEN] Get rid of gva_to_gpa translation
Tim Deegan [Tue, 20 Feb 2007 15:37:03 +0000 (15:37 +0000)]
[XEN] Get rid of gva_to_gpa translation
It didn't have any sensible error checking.  Make all callers
use gva_to_gfn translation and check the result.  MMIO and PIO
callers inject pagefaults to the guest iof the non-IO address is
not mapped.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoReplace the X_HANDLE_INVALID error codes with a single HANDLE_INVALID that
Ewan Mellor [Tue, 20 Feb 2007 15:24:01 +0000 (15:24 +0000)]
Replace the X_HANDLE_INVALID error codes with a single HANDLE_INVALID that
names the class as a parameter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agohvm: Fix getvcpucontext to return the correct CR3 value.
kfraser@localhost.localdomain [Tue, 20 Feb 2007 23:54:42 +0000 (23:54 +0000)]
hvm: Fix getvcpucontext to return the correct CR3 value.
Signed-off-by: Keir Fraser <keir@xensource.com>